<%-- 
    Document   : admin
    Created on : Nov 25, 2012, 4:23:47 PM
    Author     : kenisk
--%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/xml" prefix="x"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>GiftShop</title>
        <link href="style.css" rel="stylesheet" type="text/css" />
    </head>
    <body>
        <table width="780" border="0" align="center" cellpadding="0" cellspacing="0">
            <tr>
                <td class="logo_bg">
                    <table width="100%" border="0" cellspacing="0" cellpadding="0">
                        <tr>
                            <td width="200" class="logo_bg"><a href="#"><img src="images/logo.jpg" width="225" height="79" alt=""	border="0" /></a></td>
                            <td align="right" valign="bottom" style="padding-bottom:3px;"><a href="#" class="top_link" >Contact Us |</a><a href="#" class="top_link">itemap</a></td>
                        </tr>
                    </table>

                </td>

            </tr>       
            <tr>
                <td class="white"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                        <tr><div class="inner_copy"></div>
                        <td width="235" valign="top" style="padding:7px;"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                                <tr>
                                    <td class="heading_2">Management Menu</td>
                                </tr>
                                <tr>
                                    <td class="left_link"><a href="javascript:void()">User management</a></td>
                                </tr>
                                <tr>
                                    <td class="left_link"><a href="javascript:void()">Category management</a></td>
                                </tr>
                                <tr>
                                    <td class="left_link"><a href="javascript:void()">Product management</a></td>
                                </tr>

                            </table></td>
                        <td valign="top">
                            <div id="main-content" style="width:545px;  height: 545px; margin-top: 45px">
                            <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                
                                    <c:import charEncoding="utf-8" url="XML/products.xml" var="xmldoc"/>
                                    <c:import charEncoding="utf-8" url="xsl/AdminProducts.xsl" var="xsldoc"/>
                                    <x:transform xml="${xmldoc}" xslt="${xsldoc}"/>
                                
                            </table>
                            </div>
                            </td>
            </tr>
        </table>
    </table>

</body>
</html>
<script type="text/javascript">
    function DeleteProduct(id){
        if(confirm("Do you wan to delete ?")){
            
        }
    }
    function validateDigits(event){
        var key = event.charCode || event.keyCode || 0;
        // allow backspace, tab, delete, arrows, numbers and keypad numbers ONLY
        if (key == 8 || key == 9 || key == 46 ||
            (key >= 37 && key <= 40) ||(key >= 48 && key <= 57) ||(key >= 96 && key <= 105)){
            return true;
        }
        return false;
    }
</script>